package com.atguigu.flightservice.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;

import java.sql.Time;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lwh
 * @since 2021-10-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Flight对象", description="航班")
public class Flight implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "航班号")
    private String flightNumber;

    @ApiModelProperty(value = "起飞时间")
    private Date takeoffTime;

    @ApiModelProperty(value = "到达时间")
    private Date arrivalTime;

    @ApiModelProperty(value = "飞行时间")
    private String flightTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @ApiModelProperty(value = "起飞机场")
    private String takeoffAirport;

    @ApiModelProperty(value = "到达机场")
    private String arrivalAirport;

    @ApiModelProperty(value = "最低航班价格")
    private Integer lowestPrice;

    @ApiModelProperty(value = "准点率")
    private String ontimeRate;

    @ApiModelProperty(value = "机建燃油费")
    private Integer airportTax;

    @ApiModelProperty(value = "是否删除")
    private Boolean isDeleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)//添加字段，自动填充时间
    private Date gmtCreate;

    @ApiModelProperty(value = "航空公司")
    private String airline;

    @ApiModelProperty(value = "起始地")
    private String takeoffCity;

    @ApiModelProperty(value = "目的地")
    private String arrivalCity;



}
